package res;
import java.awt.*;

import javax.imageio.*;

import java.io.*;

public class Resources {
	
	public String dir = "";
	
	public Image icon;
	public Image[] tvs = new Image[3];
	public Image slbg;
	public Image ifbg;
	public Image ctbg;
	public Image dirt;
	public Image butt;
	public Image buth;
	public Image butd;
	public Image skin;
	
	public Resources(){
		try{
			icon = ImageIO.read(this.getClass().getResourceAsStream(dir+"bc_icon.jpg"));
			for(int i = 0; i < 3; i++){
				tvs[i] = ImageIO.read(this.getClass().getResourceAsStream(dir+"tv_"+i+".jpg"));
				slbg = ImageIO.read(this.getClass().getResourceAsStream(dir+"bc_list.jpg"));
				ifbg = ImageIO.read(this.getClass().getResourceAsStream(dir+"bc_if.jpg"));
				ctbg = ImageIO.read(this.getClass().getResourceAsStream(dir+"bc_ct.jpg"));
				dirt = ImageIO.read(this.getClass().getResourceAsStream(dir+"dirt.png"));
				butt = ImageIO.read(this.getClass().getResourceAsStream(dir+"bc_but.jpg"));
				buth = ImageIO.read(this.getClass().getResourceAsStream(dir+"bc_but_h.jpg"));
				butd = ImageIO.read(this.getClass().getResourceAsStream(dir+"bc_but_d.jpg"));
				skin = ImageIO.read(this.getClass().getResourceAsStream(dir+"char.png"));
			}
		}catch(IOException ie){
			System.err.println(ie.toString());
		}
	}

}
